﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace _1.ReverseString
{
    class ReverseString
    {
        static void Main(string[] args)
        {
            Console.Write("Enter a word:");
            string input = Console.ReadLine();
            StringBuilder reversed = new StringBuilder();
            for (int i = input.Length-1; i >= 0; i--)
            {
                reversed.Append(input[i]);
            }
            Console.WriteLine("Reversed word is:{0}",reversed.ToString());
        }
    }
}
